<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>每日健康登记系统-用户</title>
    <link rel="stylesheet" href="/vendor/simple-line-icons/css/simple-line-icons.css">
    <link rel="stylesheet" href="/vendor/font-awesome/css/fontawesome-all.min.css">
    <link rel="stylesheet" href="/css/styles.css">
</head>
<body class="sidebar-fixed header-fixed">
<input type="hidden" id="username" name="username" th:value="${user.username}"/>
<div class="page-wrapper">
    <nav class="navbar page-header">

        <a href="#" class="btn btn-link sidebar-mobile-toggle d-md-none mr-auto">
            <i class="fa fa-bars"></i>
        </a>

        <!--<a class="navbar-brand" href="#">
            <img src="/imgs/logo.png" alt="logo">
        </a>-->

        <a href="#" class="btn btn-link sidebar-toggle d-md-down-none">
            <i class="fa fa-bars"></i>
        </a>
        每日健康登记系统-用户
        <ul class="navbar-nav ml-auto">
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true"
                   aria-expanded="false">
                    <img src="/imgs/avatar-1.png" class="avatar avatar-sm" alt="logo">
                    <span id="myMsg" class="small ml-1 d-md-down-none"></span>
                </a>
                <div class="dropdown-menu dropdown-menu-right">
                    <a href="/" class="dropdown-item">
                        <i class="fa fa-lock"></i> 退出
                    </a>
                </div>
            </li>
        </ul>
    </nav>

    <div class="main-container">
        <div class="sidebar">
            <nav class="sidebar-nav">
                <ul class="nav">
                    <li class="nav-title"><span th:text="${user.name}"></span></li>

                    <li class="nav-item">
                        <a id="my_msg" href="/user/profile" target="targetText" class="nav-link active">
                            <i class="icon icon-speedometer"></i> 我的个人信息
                        </a>
                    </li>

                    <li class="nav-item">
                        <a id="reginfonow" href="/user/reginfonow" target="targetText" class="nav-link active">
                            <i class="icon icon-speedometer"></i> 健康登记站点
                        </a>
                    </li>

                    <li class="nav-item">
                        <a id="reginfobef" href="/user/reginfobef" target="targetText" class="nav-link active">
                            <i class="icon icon-speedometer"></i> 历史登记信息
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
        <div class="content">
            <div class="container">
                <div class="row">
                    <iframe id="iframe" onload="this.height=body.offsetHeight" width="100%" scrolling="true"
                            frameborder="0" src="" name="targetText"></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/popper.js/popper.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="/vendor/chart.js/chart.min.js"></script>
<script src="/js/carbon.js"></script>
<script src="/js/user/index.js"></script>
</body>
</html>

